<template>
  <div class="not-found">
    <div class="error-code">404</div>
    <div class="error-title">页面不存在</div>
    <div class="error-desc">抱歉，您访问的页面不存在或已被删除</div>
    <el-button type="primary" @click="goBack">返回上一页</el-button>
    <el-button @click="goHome">返回首页</el-button>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goBack = () => {
  router.go(-1)
}

const goHome = () => {
  router.push('/')
}
</script>

<style scoped>
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.error-code {
  font-size: 120px;
  font-weight: bold;
  color: #409EFF;
  line-height: 1;
  margin-bottom: 20px;
}

.error-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.error-desc {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
}

.el-button {
  min-width: 120px;
  margin: 0 10px;
}
</style> 